// JavaScript Document

jQuery(document).ready(function() {   
    
});
function serviceData() {
	var key = jQuery("#edit-serv-search ").val();
	var lang = jQuery('html').attr('lang');	
	if (lang == 'en') {
		jQuery.ajax({
			url:  '../searchService.php',
			type: 'POST',
			//datatype: 'json',
			data: {
				addr: key,
				lang:lang,
				process:'get-search',
			},		
			success:function(data){
				//alert(data);
				jQuery(".result_out").html(data);
			}
		});
	}else if (lang == 'ta') {
		jQuery.ajax({
			url: '../../searchService.php',
			type: 'POST',
			//datatype: 'json',
			data: {
				addr: key, 
				lang:lang,
				process:'get-search',
			},		
			success:function(data){
				jQuery(".result_out").html(data);
			}
		});
	}
}
